package marks

import "fmt"

var LastKey = "LASTHASH"



func (this *DB)GetLastHash() *Object {
	bytes, e := this.View([]byte("test"), []byte(LastKey))
	if e != nil {
		fmt.Println(e)
		return nil
	}

	obj := &Object{}
	if UnSerialize(bytes, obj){
		return obj
	}else {
		return nil
	}
}

